<header id="topbar">
    <div class="topbar-left">
        <ol class="breadcrumb">
            <li class="crumb-active">
                <a href="<%= window.location.href %>">黑名单信息管理</a>
            </li>
        </ol>
    </div>

    <div class="topbar-right">
        <div class="btn btn-default btn-sm light fw600 ml10" id="addNewItem"><span class="fa fa-plus pr5"></span>新增提现黑名单
        </div>
        <div class="ml15 ib va-m" id="toggle_sidemenu_r">
            <a href="#" class="pl5"> <i class="fa fa-sign-in fs22 text-primary"></i>
            </a>
        </div>
    </div>
</header>
<section id="content" class="animated fadeIn">
<% if(items.length > 0){ %>
    <div class="panel overflow" >
        <table class="table table-striped fs13" id="main-list">
            <thead>
                <tr class="bg-light">
                    <th>编号</th>
                    <th>类型</th>
                    <th>类型账号</th>
                    <!--<th>最低解除金额</th>-->
                    <th>状态</th>
                    <th class="sortable" data-field="created_at">创建时间</th>
                    <th class="sortable" data-field="updated_at">最后更新时间</th>
                    <th>备注</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody class="admin-form">

                <%if(items.length > 0){
                    _.each(items, function(item){ %>
                    <tr data-id="<%= item.id %>" >
                        <td><a class="modify-item"><%= item.id %></a></td>
                        <td><%= WITHDRAW_BLACK_TYPE[item.type]%></td>
                        <td><a href="#stats/account/?id=<%= item.type_account %>"><%= item.type_account%></a></td>
                        <!--<td><%= item.money %></td>-->
                        <td><%= WITHDRAW_BLACK_STATUS[item.status] %></td>
                        <td><%= item.created_at %></td>
                        <td><%= item.updated_at %></td>
                        <td><%= item.note %></td>
                        <td>
                            <a class="glyphicons glyphicons-pencil modify-item" href="javascript:;"></a>
                        </td>
                    </tr>
                <% }) %>
            <%}%>
            </tbody>
        </table>
    </div>
    <div><div class="pull-left" id="page-tips"></div><div id="paginator"></div></div>
    <% }else{ %>
    <h4 class="text-muted">请从右侧进行搜索...</h4>
    <% } %>
</section>


<!-- Panel popup -->
<div id="addNewItemPanel" class="popup-basic popup-lg bg-none mfp-with-anim mfp-hide">
    <div class="panel">
        <div class="panel-heading">
            <span class="panel-icon"><i class="fa fa-pencil"></i></span>
            <span class="panel-title">新增提现黑名单</span>
        </div>
        <div class="panel-body">
            <form id="behavior-form" class="form-horizontal  ml15" role="form">
                <div class="form-group">
                    <label class=" control-label mb5">请选择账号类型：</label>
                    <div>
                        <select id="inputStatus" data-field="status" class="form-control multiselect">
                            <option value="test_uid">测试id</option>
                            <option value="black_uid">恶意用户id</option>
                            <option value="black_alipayno">支付宝账号</option>
                            <option value="black_name">真实姓名</option>
                            <option value="black_bank">银行卡账号</option>
                            <option value="black_wechat">微信账号</option>
                            <option value="black_phone">手机号</option>
                            <option value="black_sales">电销黑名单</option>
                            <option value="black_operations">运营活动黑名单</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label mb5 mt5">请输入账号：</label>
                    <div>
                        <input type="text" class="form-control" name="type_account" id="type_account" value="<%= searched.created_at_lower %>" placeholder="请输入需要拉黑的类型账号">
                    </div>
                </div>
                <!--<div class="form-group">-->
                    <!--<label class="control-label mb5 mt5">请输入金额：</label>-->
                    <!--<div>-->
                        <!--<input type="text" class="form-control" name="money" id="money" value="<%= searched.created_at_lower %>" placeholder="请输入解封需要的流水金额">-->
                    <!--</div>-->
                <!--</div>-->
                <div class="form-group">
                    <label class="control-label mb5 mt5">备注：</label>
                    <div>
                        <textarea id="note" class="gui-textarea h-50 col-lg-10" data-field="note"
                                  placeholder="请输入备注信息（选填）"></textarea>
                    </div>
                </div>
            </form>
        </div>
        <div class="panel-footer text-right">
            <button class="btn btn-default" type="button" id="cancelAddNewItem">取消</button>
            <button class="btn btn-primary" type="button" id="confirmAddNewItem">确定</button>
        </div>
    </div>
</div>


<!-- Panel popup -->
<div id="editWithdrawPanel" class="popup-basic popup-lg bg-none mfp-with-anim mfp-hide">
    <div class="panel">
        <div class="panel-heading">
            <span class="panel-icon"><i class="fa fa-pencil"></i></span>
            <span class="panel-title">管理详情</span>
        </div>
        <div style="height:300px;overflow:scroll;" id="op_infos">
        </div>
        <div class="panel-footer text-right">
            <button class="btn btn-primary" type="button" id="submitLock">黑名单</button>
            <button class="btn btn-primary" type="button" id="submitUnlock">解封</button>
            <button class="btn btn-primary" type="button" id="submitClose">关闭</button>
        </div>
    </div>
</div>

<!-- Start: Right Sidebar -->
<aside id="sidebar_right" class="nano">
    <div class="p20 admin-form">

        <h4 class="mt5 text-muted fw500">过滤条件：</h4>
        <hr class="short">
        <div class="section mb15">
            <label class="field prepend-icon">
                <input title="用户ID" type="text" id="searchUid" class="gui-input" data-field="account_id" placeholder="用户ID" value="<%= searched.account_id %>">
                <label class="field-icon"><i class="fa fa-tag"></i>
                </label>
            </label>
        </div>
        <h6 class="fw400">账号类型</h6>
        <div class="section mb15">
            <label class="field select">
                <select id="type" name="type">
                    <option value="all" >所有</option>
                    <option value="test_uid" <%= searched.type == 'test_uid' ? 'selected' : '' %>>测试用户id</option>
                    <option value="black_uid" <%= searched.type == 'black_uid' ? 'selected' : '' %>>恶意用户id</option>
                    <option value="black_alipayno" <%= searched.type == 'black_alipayno' ? 'selected' : '' %>>支付宝账号</option>
                    <option value="black_name" <%= searched.type == 'black_name' ? 'selected' : '' %>>真实姓名</option>
                    <option value="black_bank" <%= searched.type == 'black_bank' ? 'selected' : '' %>>银行卡账号</option>
                    <option value="black_wechat" <%= searched.type == 'black_wechat' ? 'selected' : '' %>>微信账号</option>
                    <option value="black_phone" <%= searched.type == 'black_phone' ? 'selected' : '' %>>手机号</option>
                    <option value="black_sales" <%= searched.type == 'black_sales' ? 'selected' : '' %>>电销黑名单</option>
                    <option value="black_operations" <%= searched.type == 'black_operations' ? 'selected' : '' %>>运营活动黑名单</option>
                </select>
                <i class="arrow double"></i>
            </label>
        </div>
        <hr class="short">

        <h6 class="fw400">当前状态</h6>
        <div class="section mb15">
            <label class="field select">
                <select id="status" name="status">
                    <option value="0">所有</option>
                    <option value="1" <%= searched.status == '1' ? 'selected' : '' %>>启用</option>
                    <option value="2" <%= searched.status == '2' ? 'selected' : '' %>>失效</option>
                </select>
                <i class="arrow double"></i>
            </label>
        </div>
        <hr class="short">

        <button class="btn btn-default btn-block" type="button" id="search">搜索</button>
    </div>
</aside>
<!-- End: Right Sidebar -->


